from machine import Pin
import time


class LED():
    def __init__(self, pin = 8):
        self.__led = Pin(pin, Pin.OUT)

    def on(self):
        self.__led.value(0)

    def off(self):
        self.__led.value(1)

    def blink(self):
        self.on()
        time.sleep(0.5)
        self.off()


if __name__ == "__main__":
    led = LED()
    led.blink()